package com.gao.api.gate.quick.proto.http;

/**
 * <p></p>
 *
 * @author gaoshuangwen
 * @since 2022/01/06 9:56
 */
public class HttpRequest {

    private String protocol;
    private String method;
    private String path;
    private HttpParams params;
    private String scheme;
    private Headers headers;
    private boolean hasBody;
    private HttpBody requestBody;

    public HttpRequest(String protocol, String method, String path,
                       HttpParams params, String scheme, Headers headers, HttpBody requestBody) {
        this.protocol = protocol;
        this.method = method;
        this.path = path;
        this.params = params;
        this.scheme = scheme;
        this.headers = headers;
        this.requestBody = requestBody;
    }
    public HttpRequest(String protocol, String method, String path,
                       HttpParams params, Headers headers, HttpBody requestBody) {
        this.protocol = protocol;
        this.method = method;
        this.path = path;
        this.params = params;
        this.headers = headers;
        this.requestBody = requestBody;
    }
    public HttpRequest(String protocol, String method, String path,
                       HttpParams params, Headers headers) {
        this.protocol = protocol;
        this.method = method;
        this.path = path;
        this.params = params;
        this.headers = headers;
    }
    public HttpRequest(String protocol, String method, String path) {
        this.protocol = protocol;
        this.method = method;
        this.path = path;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public HttpParams getParams() {
        return params;
    }

    public void setParams(HttpParams params) {
        this.params = params;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public Headers getHeaders() {
        return headers;
    }

    public void setHeaders(Headers headers) {
        this.headers = headers;
    }

    public HttpBody getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(HttpBody requestBody) {
        this.requestBody = requestBody;
    }

    public boolean isHasBody() {
        return hasBody;
    }

    public void setHasBody(boolean hasBody) {
        this.hasBody = hasBody;
    }


}
